package com.liuboya.service.tablebiz.wbhotsearchrank;

import com.alibaba.fastjson.JSONObject;
import com.liuboya.dao.weibo.wbhotsearchrank.entity.WbHotSearchRank;
import com.liuboya.dao.weibo.wbhotsearchrank.entity.WbHotSearchRankExample;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 描述：
 *
 * @author yeyuan
 * @date 2021/08/13 15:44
 **/
public interface WbHotSearchRankService {

    List<WbHotSearchRank> find(WbHotSearchRankExample example);

    Integer count(WbHotSearchRankExample example);

    Integer update(WbHotSearchRank wbhotsearchrank, WbHotSearchRankExample example);

    Long insert(WbHotSearchRank wbhotsearchrank);

    WbHotSearchRank findByUnique(Integer recordTime, String words);

    /**
     * 单个json节点转换为插入实体类
     *
     * @param jsonObject json节点
     * @return 插入实体类
     */
    WbHotSearchRank jsonToWbInsert(JSONObject jsonObject);
}
